package com.huarui.receive.model;

import java.math.BigDecimal;
import java.util.Date;
import org.ewaf.framework.model.BaseDataObject;

/**
 * 入库单
 */
public class Receive extends BaseDataObject {

	private static final long serialVersionUID = -7316485664624443107L;

	public static final String STATUS_TO_CREATE = "-1";
	/**
	 * 草稿
	 */
	public static final String STATUS_DRAFT = "0";
	/**
	 * 待仓库点数
	 */
	public static final String STATUS_TO_INVENTORY = "1";
	/**
	 * 已入库
	 */
	public static final String STATUS_INVENTORY = "2";
	/**
	 * 作废
	 */
	public static final String STATUS_INVALID="3";

	/**
	 * 主键
	 */
	private Integer id;

	/**
	 * 卖方ID
	 */
	private Integer sellerId;

	/**
	 * 卖方在买方系统中的客户ID(如果是期初单，填0)
	 */
	private Integer partnerIdByBuyer;

	/**
	 * 买方ID
	 */
	private Integer buyerId;

	/**
	 * 买方的单据号
	 */
	private String codeOfBuyer;

	/**
	 * 卖方的单据号
	 */
	private String codeOfSeller;

	/**
	 * 订单ID(被引用的订单ID)
	 */
	private Integer ordersId;

	/**
	 * 状态(0=草稿，1=已提交,2=已审核,3=作废)
	 */
	private String status;

	/**
	 * 创建人
	 */
	private Integer creatorId;

	/**
	 * 创建时间(非手工录入)
	 */
	private Date gmtCreate;

	/**
	 * 提交者ID
	 */
	private Integer submitter;

	/**
	 * 提交时间(非手工录入)
	 */
	private Date gmtSubmit;
	/**
	 * 归入货位人
	 */
	private Integer depositer;
	/**
	 * 归入货位时间
	 */
	private Date gmtDepositer;
	/**
	 * 收货时间(手工录入)
	 */
	private Date gmtAccept;

	/**
	 * 买方备注
	 */
	private String memo;

	/**
	 * 总金额(成本)
	 */
	private BigDecimal amount;
	/**
	 * 流程ID
	 */
	private Integer workFlowId;
	/**
	 * 当前处理人ID
	 */
	private Integer currentorId;

	public Receive(){
		
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getSellerId() {
		return sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

	public Integer getPartnerIdByBuyer() {
		return partnerIdByBuyer;
	}

	public void setPartnerIdByBuyer(Integer partnerIdByBuyer) {
		this.partnerIdByBuyer = partnerIdByBuyer;
	}

	public Integer getBuyerId() {
		return buyerId;
	}

	public void setBuyerId(Integer buyerId) {
		this.buyerId = buyerId;
	}

	public String getCodeOfBuyer() {
		return codeOfBuyer;
	}

	public void setCodeOfBuyer(String codeOfBuyer) {
		this.codeOfBuyer = codeOfBuyer;
	}

	public String getCodeOfSeller() {
		return codeOfSeller;
	}

	public void setCodeOfSeller(String codeOfSeller) {
		this.codeOfSeller = codeOfSeller;
	}

	public Integer getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(Integer ordersId) {
		this.ordersId = ordersId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getSubmitter() {
		return submitter;
	}

	public void setSubmitter(Integer submitter) {
		this.submitter = submitter;
	}

	public Date getGmtSubmit() {
		return gmtSubmit;
	}

	public void setGmtSubmit(Date gmtSubmit) {
		this.gmtSubmit = gmtSubmit;
	}

	public Integer getDepositer() {
		return depositer;
	}

	public void setDepositer(Integer depositer) {
		this.depositer = depositer;
	}

	public Date getGmtDepositer() {
		return gmtDepositer;
	}

	public void setGmtDepositer(Date gmtDepositer) {
		this.gmtDepositer = gmtDepositer;
	}

	public Date getGmtAccept() {
		return gmtAccept;
	}

	public void setGmtAccept(Date gmtAccept) {
		this.gmtAccept = gmtAccept;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getWorkFlowId() {
		return workFlowId;
	}

	public void setWorkFlowId(Integer workFlowId) {
		this.workFlowId = workFlowId;
	}

	public Integer getCurrentorId() {
		return currentorId;
	}

	public void setCurrentorId(Integer currentorId) {
		this.currentorId = currentorId;
	}

}
